<%@ page language="java" pageEncoding="utf-8"%>
<html>
<head>
		<title>学生选课管理系统</title>
		<link href='css/main.css' rel='stylesheet' type='text/css'>
		<script type="text/javascript" src="js/jquery-1.4.2.js">
</script>
	
		<script language="JavaScript" type="text/JavaScript" src="js/jquery.blockUI.js">
</script>
</head>

	<body bgcolor="#FFFFFF" text="#666666" leftmargin="0" topmargin="0"
		marginwidth="0" marginheight="0" link="#FF9900" vlink="#006699">
		<div align="center">
			<marquee direction="left" scrollamount="5" onmouseover="this.stop()"
				onmouseout="this.start()" width="50%">
				<span style="color: navy"><h3>
						欢迎使用菏泽学院学生选课系统
					</h3> </span>
			</marquee>
		</div>
		<div id="d1"
			style="background_color: white; position: absolute; margin: 0; padding_left: 0px; padding_top: 0px; left: 340px; top: 10px; width: 611px; height: 333px; z-index: 1;">
			<img src="image/kuang.gif" width="611" height="540" />
			<div id="d_body"
				style="position: absolute; left: 0px; top: 40px; width: 611px; height: 369px; z-index: 2;">
				<table width="472" border="0" align="center" cellpadding="3"
					cellspacing="1">
					<tr>
						<td width="471" valign="middle">
							<table width="486" border="0" cellspacing="1" cellpadding="0">
								<tr>
									<td width="103" valign="bottom">
										<table border="0" cellspacing="2" cellpadding="0">
											<tr>
												<td valign="bottom" width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
											</tr>
										</table>
									</td>
									<td width="278">
										<div align="center">
											<img src="image/login.jpg" width="89" height="37">
										</div>
									</td>
									<td width="102" valign="bottom">
										<table border="0" cellspacing="2" cellpadding="0">
											<tr>
												<td valign="bottom" width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
												<td width="20">
													<img src="image/p_point03.gif" width="20" height="20">
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td width="471" valign="middle">
							<p>
								<font size="2">欢迎使用学生选课管理系统，你可以使用学生、教师和管理员身份分别登录本系统。</font>
								<br>
								<font size="2">系统说明：学生使用学号进行登录，教师使用员工号进行登录。</font>
							</p>
						</td>
					</tr>
					<tr>
						<td width="471" valign="middle">
							<form action="user/checkLogin.do" method="post" target="success" >
								<table width="460" border="0" cellspacing="0" cellpadding="0"
									align="center">
									<tr>
										<td width="8">
											<img src="image/obj_frame_top1.gif" width="8" height="22">
										</td>
										<td width="444" background="image/obj_frame_top2.gif">
											&nbsp;
										</td>
										<td width="8">
											<img src="image/obj_frame_top3.gif" width="8" height="22">
										</td>
									</tr>
									<tr bgcolor="#6699FF">
										<td colspan="3">
											<br>
											<table width="426" border="0" cellspacing="0" cellpadding="3"
												align="center">
												<tr>
													<td width="65" rowspan="5" valign="top">
														<font size="2" color="#FFFFFF">&nbsp; </font>
													</td>
													<td width="117" valign="top">
														&nbsp;
													</td>
													<td width="147">
														&nbsp;
													</td>
													<td width="73" rowspan="5">
														&nbsp;
													</td>
												</tr>
												<tr>
													<td align="right" valign="top">
														<font color="#FFFFFF" size="2">登录账号：</font>
													</td>
													<td width="147">
														<input name="loginno" type="loginno" size="14">
													</td>
												</tr>
												<tr>
													<td align="right" valign="top">
														<font color="#FFFFFF" size="2">登录密码：</font>
													</td>
													<td width="147">
														<input id="password" name="password" type="password"
															size="14">
													</td>
												</tr>
												<tr>
													<td align="right" valign="middle">
														<font color="#FFFFFF" size="2">登录用户：</font>
													</td>
													<td width="147">
														<select id="role" name="role" size="1">
															<option value="student" selected="selected">
																----学生----
															</option>
															<option value="teacher">
																----教师----
															</option>
															<option value="manager">
																---管理员---
															</option>
														</select>
													</td>
												</tr>
												<tr>
													<td colspan="2" align="left" valign="top">
														<div align="center">
															&nbsp;
														</div>
													</td>
												</tr>
												<tr>
													<td colspan="4">
														<div align="center">
															<font size="2" color="#FFFFFF"> <input
																	type="submit" name="submit2" value="登录" onclick="login();"> &nbsp;
																<input type="reset" name="reset2" value="重置"
																	onclick="reset()"> </font>
														</div>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td width="8" valign="top">
											<img src="image/obj_frame_bottom1.gif" width="8" height="18">
										</td>
										<td width="444" background="image/obj_frame_bottom2.gif">
											&nbsp;
										</td>
										<td width="8" valign="top">
											<img src="image/obj_frame_bottom3.gif" width="8" height="18">
										</td>
									</tr>
								</table>
							</form>
						</td>
					</tr>
					<
					<tr>
						<div id="loginErro" align="right">
						</div>
					</tr>
					<tr>
						<td width="471" valign="middle">
							<br>
							<table border="0" cellspacing="2" cellpadding="0">
								<tr>
									<td valign="bottom" width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
									<td width="20" height="2">
										<img src="image/p_point03.gif" width="20" height="20">
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<table id="messageArea" width="98%" border="0" align="center"
					cellpadding="0" cellspacing="0" style="display: none">
					<!-- none -->
					<tr>
						<td>
							<iframe onload="this.width = document.body.scrollWidth;"
								height="100" frameborder="0" id="success" name="success">
							</iframe>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</body>
<script type="text/javascript">
function login()
{
	 $.blockUI({ message: "正在登录..." }); 
}
//返回后台控制器的信息
function callbackFunction(state,targetId){
	$.unblockUI();
	//显示提示信息
	if(state==1){
	$("#messageArea").hide();
		if(targetId=='student'){
			window.location.href="/SCS/Student/home.jsp";
		}
		if(targetId=='teacher'){
			window.location.href="/SCS/Teacher/home.jsp";
		}
		if(targetId=='admin'){
			window.location.href="/SCS/manager/home.jsp";
		}
	}
	if(state==0){
		alert(targetId);
		$("#messageArea").hide();
		return;
	}
}
function reset(){
	this.location.href = this.location.href;
}
</script>
</html>